#import "KiteGraciousController.h"
        
#import "KiteGraciousModel.h"
#import "KiteGraciousCell.h"
#import "Masonry.h"

@interface KiteGraciousController () <UICollectionViewDataSource, UICollectionViewDelegate>

@property (nonatomic, strong) UICollectionView *freedomPulseEuphoriaCollectionView;
@property (nonatomic, strong) NSMutableArray *quenchQuiverArr;

@end

@implementation KiteGraciousController

- (void)viewWillAppear:(BOOL)animated {
    [super viewWillAppear:animated];
}

- (void)viewDidLoad {
    [super viewDidLoad];

    [self upliftConfigsview];
	[self blazeLuminousRadiateloadData];
}


- (UICollectionView *)freedomPulseEuphoriaCollectionView {
    if (!_freedomPulseEuphoriaCollectionView) {
        UICollectionViewFlowLayout *flowLayout = [[UICollectionViewFlowLayout alloc] init];
        flowLayout.minimumLineSpacing = 10;
        flowLayout.minimumInteritemSpacing = 10;
        flowLayout.itemSize = CGSizeMake(100, 100);
        flowLayout.scrollDirection = UICollectionViewScrollDirectionVertical;
        
        _freedomPulseEuphoriaCollectionView = [[UICollectionView alloc] initWithFrame:self.view.bounds collectionViewLayout:flowLayout];
        _freedomPulseEuphoriaCollectionView.backgroundColor = UIColor.clearColor;
        _freedomPulseEuphoriaCollectionView.delegate = self;
        _freedomPulseEuphoriaCollectionView.dataSource = self;
        _freedomPulseEuphoriaCollectionView.showsHorizontalScrollIndicator = NO;
        _freedomPulseEuphoriaCollectionView.showsVerticalScrollIndicator = NO;
        [_freedomPulseEuphoriaCollectionView registerClass:[KiteGraciousCell class] forCellWithReuseIdentifier:NSStringFromClass([KiteGraciousCell class])];
    }
    return _freedomPulseEuphoriaCollectionView;
}

//: 懒加载数据模型数组
- (NSMutableArray *)quenchQuiverArr {
	if (!_quenchQuiverArr) {
		_quenchQuiverArr = [NSMutableArray array];
	}
	return _quenchQuiverArr;
}

//: 获取数据模型
- (void)blazeLuminousRadiateloadData {
	
}

//: 初始化页面UI
- (void)upliftConfigsview {
	[self.view addSubview:self.freedomPulseEuphoriaCollectionView];
	[self.freedomPulseEuphoriaCollectionView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.edges.equalTo(self.view);
	}];
}


#pragma mark - UICollectionView DataSource
- (NSInteger)collectionView:(UICollectionView *)collectionView numberOfItemsInSection:(NSInteger)section {
    return self.quenchQuiverArr.count;
}

- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath {
    KiteGraciousCell *glowKaleidoscope = [collectionView dequeueReusableCellWithReuseIdentifier:NSStringFromClass([KiteGraciousCell class]) forIndexPath:indexPath];
    return glowKaleidoscope;
}

#pragma mark - UICollectionView Delegate
- (void)collectionView:(UICollectionView *)collectionView didSelectItemAtIndexPath:(NSIndexPath *)indexPath {
    //: collectioncell 点击
}


@end
